package org.clockworkmages.games.anno1186.model.option;

import org.clockworkmages.games.anno1186.GameStateService;
import org.clockworkmages.games.anno1186.Injected;

public class GoBackOption
		extends Option {

	public static GoBackOption INSTANCE = new GoBackOption();

	@Injected
	private GameStateService gameStateService;

	private GoBackOption() {
		super("BACK");
		setIcon("back");
		setLabel("Back");
	}

	@Override
	public void select() {

		gameStateService.removeCurrentSituation();
		super.select();
	}

}
